#include <stdio.h>
int main()
{
	char arr[3][3] = { {'1','2','3'},{'4','5','6'},{'7','8','9'} };
	int sz = 0;
	int i = 0;
	int j = 0;
	for (i = 0; i < 3; i++)
		for (j = 0; j < 3; j++)
			sz += arr[i][j];
	sz -= 9 * '0';
	printf("%d", sz);
	return 0;
}